#include<iostream>
#include<string>
#include<sw/redis++/redis.h>
using std::string;
using std::iostream;
using std::cout;
using std::cin;


using namespace sw::redis;

int main(){



    auto redis= Redis("tcp://127.0.0.1:6379");
    auto x=redis.ping();

       cout<<x<<std::endl;
 }


